package com.woniuxy.income.service.impl;

import com.woniuxy.core.model.Result;
import com.woniuxy.income.dao.PlatformIncome;
import com.woniuxy.income.feign.OrderClient;
import com.woniuxy.income.mapper.PlatformIncomeMapper;
import com.woniuxy.income.service.PlatformIncomeService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author 凌玉春
 * @since 2024年01月15日
 */
@Service
public class PlatformIncomeServiceImpl extends ServiceImpl<PlatformIncomeMapper, PlatformIncome> implements PlatformIncomeService {

    @Autowired
    private OrderClient orderClient;
    @Override
    public String platGetMonthInCome() {
        Result<String> bigDecimalResult=orderClient.platGetMonthInCome();
        String string = bigDecimalResult.getData();
        return string;
    }
}
